| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | import { combineReducers, applyMiddleware, createStore } from 'redux'; |
||
| 15 | export function createReducer(initialState, handlers) { |
||
| 16 | return function reducer(state = initialState, action) { |
||
| 17 | if (handlers.hasOwnProperty(action.type)) { |
||
| 18 | return handlers[action.type](state, action); |
||
| 19 | } else { |
||
| 20 | return state; |
||
| 21 | } |
||
| 22 | }; |
||
| 23 | } |
||
| 24 | |||
| 35 |